import { request } from '@/framework/utils/request-jdz';

// 根据仓库ID查询当前登录用户负责的冰箱
export const storageChargedIcebox = (parentId) => {
  return request(
    {
      url: '/storages/charged/icebox',
      method: 'get',
      params: {
        parentId,
      },
    },
    {
      isGetDataDirectly: false,
    },
  );
};
export const storageSearch = (params) => {
  return request(
    {
      url: '/storages',
      method: 'get',
      params,
    },
    {
      isGetDataDirectly: false,
    },
  );
};

export const storageIce = (id) => {
  return request(
    {
      url: `/storages/statistics/icebox/${id}`,
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
};
